package com.alan.designMode.builder;

/**
 * Created by Alan on 17-8-28
 */
public class Client {

    public static void main(String[] args) {
        Director director = new Director();
        //1W 辆A类型的奔驰车
        for (int i = 0; i< 10000; i++){
            director.getABenzMOdel().run();
        }
        //100W 辆B类型的奔驰车
        for (int i = 0; i< 10000; i++){
            director.getBBenzMOdel().run();
        }
        //1000W 辆C类型的宝马车
        for (int i = 0; i< 10000; i++){
            director.getCBMWModel().run();
        }
    }

}
